angular.module('app').config(($indexedDBProvider) => {
  $indexedDBProvider
    .connection('MQ')
    .upgradeDatabase(1, (event, db, tx) => {
      let objStore = db.createObjectStore('queue', { 'keyPath': 'openid' });
      objStore.createIndex('nickname', 'nickname', { unique: false });
      objStore.createIndex('status', 'status', { unique: false });
    });
})
